package com.ghck.message.service;

import com.ghck.message.model.req.EaseRegisterUserReq;
import com.ghck.message.model.res.EaseAccessTokenRes;

/**
 * 环信service
 * @author kk
 * <a href="http://docs.easemob.com/im/100serverintegration/20users">IM用户管理</a>
 */
public interface EasemobService {

	
	public String getAuthorization();
	/**
	 * 获取Accesstoken
	 */
	public EaseAccessTokenRes getAccessToken();
	
	/**
	 * 注册单个用户
	 */
	public String registerUser(EaseRegisterUserReq user);
	
	/**
	 * 注册IM用户[批量]
	 */
//	public String registerUsers(List<EaseRegisterUserReq> user);
	
	
	/**
	 * 获取IM用户[单个]
	 */
	public String getUser(String userName);
	
	/**
	 * 删除IM用户[单个]
	 */
	public String deleteUser(String userName);
	
	/**
	 * 重置IM用户密码
	 */
	public String resetUserPassword(String userName,String newpassword);
	
	/**
	 * 修改用户昵称
	 */
	public String resetNickname(String userName,String nickname);
	
	
	/******************** 好友管理 *****************/
	/**
	 * 添加好友
	 */
	public String addFriend(String owner_username,String friend_username);
	
	/**
	 * 解除IM用户的好友关系
	 */
	public String deleteFriend(String owner_username,String friend_username);
	
}
